home *** CD-ROM | disk | FTP | other *** search
- GOLDEDIT.MOD... update of UEDITGLD.MOD for WWIV 4.2
- Viper #23 @5052
- Mon Dec 09 02:21:30 1991
- ┌────────────────────────────────────────────────────────────────────────────┐
- │ Mod Name: GOLDEDIT.MOD Mod Author: Viper #23 @5052 │
- │ Difficulty: Easy Date: 12/09/1991 │
- │ WWIV Version: 4.2 │
- │ Description: Allows Sysop or Co-Sysop to change the users gold by hitting │
- │ '$' from Uedit. │
- │ Note: This is not my mod. This is the mod from The Shadow # 15@2303. His │
- │ mod was called UEDITGLD.MOD. This is a revised version to work with │
- │ WWIV 4.2. If theres already a mod out there that is for 4.2, Sorry, │
- │ I did not know. │
- │ Files Affected: UEDIT.C │
- └────────────────────────────────────────────────────────────────────────────┘
-
- Step 1. Back up your source code. No need in explaing this. Right?
-
- Step 2. Find this in UEDIT.C in void print_data...
-
- if ((u->restrict)!=0) /* Existing code */
- npr("Rest: %s\r\n",s2); /* " " */
- if (u->wwiv_regnum) /* " " */
- npr("WWIV: %ld\r\n", u->wwiv_regnum); /* Existing code */
- itoa((int)u->gold,s3,10); /* Goldedit Mod */ /* ADD */
- npr("Gold: %s\r\n", s3); /* Goldedit Mod */ /* ADD */
- /* Existing code */
- } /* Existing code */
-
- Step 3. Search a little farther down for this...
-
-
- nl(); /* Existing code */
- prt(2,"Uedit : "); /* " " */
- if ((thisuser.sl==255) || (wfc)) /* Existing code */
- ch=onek("Q[]{}/,.?UDRNLCPOGMSTEYZAI~:$"); /* NOTE: $ added */
- else /* Add this here ^ */
- ch=onek("Q[]{}/,.?UDRNLCPOGMSTEYZAI"); /* Add $ if you want */
- switch(ch) { /* Co-Sysop to access */
- case 'Q': /* the gold editing to */
- done=1; /* Existing code */
-
-
-
- Step 4. Search a little farther down for this...
-
-
- } /* Existing code */
- break; /* Existing code */
- case '$': /* Goldedit Mod Start Add from here */
- prt(2,"New Gold? "); /* " " " */
- input(s,10); /* " " " */
- i=atoi(s); /* " " " */
- u.gold=i; /* " " " */
- write_user(un,&u); /* " " " */
- break; /* Goldedit Mod Finish Stop adding here */
- case '~': /* Existing code */
- u.ass_pts=0; /* Existing code */
-
-
- Step 5. Recompile UEDIT.C only. It shouldn't take to long since you are
- only doing one file.
- --------------------------------------------------------------------------
-
- DISCLAIMER
-
- I take no responsibilty in this mod. If it kills someone, don't
- come blaming me. You should use this mod at your own risk. This
- mod should have no problems with it, but don't hold me up to it.
-
- Read this: The author of the 4.12 file can be located at 15@2303.
- He originally wrote this mod for 4.12. I just changed a
- little bit of the code to mtch 4.2's. If you have any
- questions or anything else i can be contacted at
- #23 @5052. If you use this mod and like or you don't
- like it email.
-
-
- Viper #23 @5052